<?php
class ModuleItemVolumeVo extends SzAbstractMySqlVo
{

    private $userId;
    private $gridId;

    /**
     * Initialize ModuleItemVolumeVo.
     *
     * @param $userId
     * @param $gridId
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ModuleItemVolumeVo
     */
    public function __construct($userId, $gridId, $isInsert = false) {
        $this->userId = $userId;
        $this->gridId = $gridId;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ModuleItemVolumeVo';
        $this->ormName = 'ModuleItemVolume';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'gridId' => $this->getGridId(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'gridId' => $this->getGridId(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getGridId(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getGridId()
    {
        return $this->gridId;
    }

    public function setGridId($val)
    {
        $this->saveColumnStatus(1, $this->gridId);
        $this->gridId = $val;
    }

}